import request from '@/utils/request'

// 查询学生竞赛列表
export function listStuCompetition(query) {
  return request({
    url: '/stuCompetition/stuCompetition/list',
    method: 'get',
    params: query
  })
}

// 查询学生竞赛详细
export function getStuCompetition(id) {
  return request({
    url: '/stuCompetition/stuCompetition/' + id,
    method: 'get'
  })
}

// 新增学生竞赛
export function addStuCompetition(data) {
  return request({
    url: '/stuCompetition/stuCompetition',
    method: 'post',
    data: data
  })
}

// 修改学生竞赛
export function updateStuCompetition(data) {
  return request({
    url: '/stuCompetition/stuCompetition',
    method: 'put',
    data: data
  })
}

// 删除学生竞赛
export function delStuCompetition(id) {
  return request({
    url: '/stuCompetition/stuCompetition/' + id,
    method: 'delete'
  })
}
